import ajax from './ajax'

// 查子公司
export const getAgentMultilevelList = (agentId) => {
	return ajax.post('/monitor/api/common/agent/queryAgentMultilevelListByAgentId', {
		agentId
	})
}
// 围栏列表查询
export const queryFCustAddressByCustId = (custId = "") => {
	return ajax.post('/monitor/api/factoryManager/queryFCustAddressByCustId', {
		custId
	})
}
// 车型查询
export const findSysDictDetailByType = () => {
	return ajax.post('/monitor/api/common/SysDictDetail/findSysDictDetailByType')
}

// 用户列表查询
export const getAgentStaffList = (agentId = '') => {
	return ajax.post('/monitor/api/warehoseManager/getAgentStaffList', {
		agentId
	})
}

// {
// 		username: 18500082086
// 		yzm: A2273
// 		yzmc: E273F2C521124D1DA976407B80CB37DA
// 		password: zw@12345123
// 	}
export const login = (formData) => {
	return ajax.post('/monitor/LoginMobile', formData)
}